<?php


namespace app\mall\controller;


use app\data\controller\api\Auth;
use app\mall_back\model\TescoRecordModel;

class Record extends Auth
{
    /**
     * 某人某期夺宝号列表
     */
   public function userLuckyNumbers(){
       $user_id = request()->get('user_id',0);
       $goods_lucky_draw_id = request()->get('goods_lucky_draw_id',0);
       $query =  TescoRecordModel::where(['u_id'=>$user_id]);
       if( $goods_lucky_draw_id > 0 ){
           $query->where(['goods_lucky_draw_id'=>$goods_lucky_draw_id]);
       }
       $list =$query->column('lucky_number');
       $this->success('获取成功',$list);

   }
}